package org.code.mallspringboot.service.impl;

import org.code.mallspringboot.mapper.PmsProductLadderMapper;
import org.code.mallspringboot.pojo.PmsProductLadder;
import org.code.mallspringboot.service.PmsProductLadderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class PmsProductLadderServiceImpl implements PmsProductLadderService{

    @Autowired
    private PmsProductLadderMapper pmsProductLadderMapper;

    @Override
    public List<PmsProductLadder> selectById(int id) {
        return pmsProductLadderMapper.selectById(id);
    }

    @Override
    public int delete(int productId) {
        return pmsProductLadderMapper.delete(productId);
    }

    @Override
    public int add(PmsProductLadder pmsProductLadder) {
        return pmsProductLadderMapper.add(pmsProductLadder);
    }
}




